FROM node

RUN npm install -g typescript \
    && npm install -g ts-node

COPY src /tronscan/src
COPY app.ts /tronscan/app.ts
COPY tsconfig.json /tronscan/tsconfig.json
COPY package.json /tronscan/package.json

RUN cd /tronscan && npm install

WORKDIR /tronscan

EXPOSE 8090